/**
* @file vga_text.h
* VGA compatible text mode driver
*
* Copyrights 2010 Michal Saman, m.saman@designplus.cz.
* This source code is release under the Apache License 2.0.
* http://www.apache.org/licenses/LICENSE-2.0
*/

#ifndef _VGA_TEXT_H
#define _VGA_TEXT_H

#define COLS 80
#define LINES 25
#define max_buffer 255

/* address of VGA video memory */
#define VGA_TEXT_MODE_VID_MEMORY 0xB8000

extern void vga_text_mode_putc(unsigned char c);
extern void vga_text_mode_puts(char *str);
extern void vga_text_mode_scroll_line();
extern void vga_text_mode_get_cursor_pos();
extern uint32_t vga_text_mode_cursor_getX();
extern uint32_t vga_text_mode_cursor_getY();
extern unsigned vga_text_mode_set_color(const unsigned c);
extern void vga_text_mode_cursor_resetX();
extern void vga_text_mode_gotoXY(unsigned x, unsigned y);
extern void vga_text_mode_clr_scr(const unsigned short c);

#endif
